'''
Created on 27/09/2012

@author: GabrielBacelar
'''
import shop
import shopSmart

orders1 = [('apples',1.0), ('oranges',3.0)]
orders2 = [('apples',3.0)]             
dir1 = {'apples': 2.0, 'oranges':1.0}
shop1 =  shop.FruitShop('shop1',dir1)
dir2 = {'apples': 1.0, 'oranges': 5.0}
shop2 = shop.FruitShop('shop2',dir2)
shops = [shop1, shop2]


print shopSmart.shopSmart(orders1, shops).getName() == 'shop1'
print shopSmart.shopSmart(orders2, shops).getName() == 'shop2'
